package com.zzyl;

import com.zzyl.service.WechatService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.junit.runner.RunWith;



//@RunWith(SpringRunner.class)
@SpringBootTest(classes= ZzylApplication.class)
public class WechatServiceImpltest {

    @Autowired
    private WechatService wechatServiceImpl;
    @Test
    public void testgetOpenId()
    {
        String openId = wechatServiceImpl.getOpenId("0e38lv000J72hS1PN7400OUuqq38lv0s");
        System.out.println(openId);
    }
    @Test
    public void testgetOpen2() {
        String phone = wechatServiceImpl.getPhone("0b73092384868bde02216de1ba570905d4bdda7bdebdc01321d3da54d484569e");
        System.out.println(phone);
    }
}
